Alif Semiconductor /AE512F80F5582LS_CM55_HE_View /GPU2D /GPU2D_CONTROL2

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as GPU2D_CONTROL2

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (Val_0x0)D2C_PATTERNENABLE 0 (Val_0x0)D2C_TEXTUREENABLE 0 (D2C_PATTERNSOURCEL5)D2C_PATTERNSOURCEL5 0 (Val_0x0)D2C_USE_ACB 0 (D2C_READFORMAT3)D2C_READFORMAT3 0 (D2C_READFORMAT4)D2C_READFORMAT4 0 (Val_0x0)D2C_BSFA 0 (Val_0x0)D2C_BDFA 0 (D2C_WRITEFORMAT3)D2C_WRITEFORMAT3 0 (Val_0x0)D2C_BSF 0 (Val_0x0)D2C_BDF 0 (Val_0x0)D2C_BSI 0 (Val_0x0)D2C_BDI 0 (Val_0x0)D2C_BC2 0 (Val_0x0)D2C_TEXTURECLAMPX 0 (Val_0x0)D2C_TEXTURECLAMPY 0 (Val_0x0)D2C_TEXTUREFILTERX 0 (Val_0x0)D2C_TEXTUREFILTERY 0D2C_READFORMAT 0D2C_WRITEFORMAT 0D2C_WRITEALPHA 0 (D2C_RLE_ENABLE)D2C_RLE_ENABLE 0 (D2C_CLUT_ENABLE)D2C_CLUT_ENABLE 0 (D2C_COLKEY_ENABLE)D2C_COLKEY_ENABLE 0 (Val_0x0)D2C_CLUTFORMAT 0 (Val_0x0)D2C_BSIA 0 (Val_0x0)D2C_BDIA 0 (Val_0x0)D2C_RLE_PIXEL_WIDTH

D2C_CLUTFORMAT=Val_0x0, D2C_PATTERNENABLE=Val_0x0, D2C_TEXTUREENABLE=Val_0x0, D2C_BSIA=Val_0x0, D2C_BSI=Val_0x0, D2C_BSF=Val_0x0, D2C_BDFA=Val_0x0, D2C_BDIA=Val_0x0, D2C_BDF=Val_0x0, D2C_TEXTURECLAMPY=Val_0x0, D2C_TEXTUREFILTERY=Val_0x0, D2C_TEXTUREFILTERX=Val_0x0, D2C_TEXTURECLAMPX=Val_0x0, D2C_RLE_PIXEL_WIDTH=Val_0x0, D2C_BDI=Val_0x0, D2C_BC2=Val_0x0, D2C_USE_ACB=Val_0x0, D2C_BSFA=Val_0x0

Description

Surface Control Register

Fields

D2C_PATTERNENABLE

Pixel source is a pattern color (blend of GPU2D_COLOR1 and GPU2D_COLOR2 depending on GPU2D_PATTERN and pattern index)

0 (Val_0x0): Disable pattern

1 (Val_0x1): Enable pattern

D2C_TEXTUREENABLE

Pixel source is read from texture and used as an alpha to blend between GPU2D_COLOR1 and GPU2D_COLOR2.

0 (Val_0x0): Disable texture

1 (Val_0x1): Enable texture

D2C_PATTERNSOURCEL5

Limiter 5 is used as pattern index instead of the default U-limiter

D2C_USE_ACB

(see bit D2C_WRITEFORMAT) (see bits D2C_BSFA, D2C_BDFA, D2C_BSIA, D2C_BDIA, D2C_WRITEFORMAT)

0 (Val_0x0): Use ‘write alpha’ mode

1 (Val_0x1): Use full alpha channel blending mode

D2C_READFORMAT3

Third bit of the texture buffer format. See bit D2C_READFORMAT for description

D2C_READFORMAT4

Fourth bit of the texture buffer format. See bit D2C_READFORMAT for description.

D2C_BSFA

If bit D2C_USE_ ACB == 1:

0 (Val_0x0): Use 1.0 as source blend factor for alpha channel

1 (Val_0x1): Use alpha as source blend factor for alpha channel

D2C_BDFA

If bit D2C_USE_ ACB == 1:

0 (Val_0x0): Use 1.0 as destination blend factor for alpha channel

1 (Val_0x1): Use alpha as destination blend factor for alpha channel

D2C_WRITEFORMAT3

Third bit of the framebuffer format. See bit D2C_WRITEFORMAT for description.

D2C_BSF

0 (Val_0x0): Use 1.0 as source blend factor

1 (Val_0x1): Use alpha as source blend factor

D2C_BDF

0 (Val_0x0): Use 1.0 as destination blend factor

1 (Val_0x1): Use alpha as destination blend factor

D2C_BSI

0 (Val_0x0): Use blend factor as specified through bit D2C_BSF

1 (Val_0x1): Invert source blend factor (1-x)

D2C_BDI

0 (Val_0x0): Use blend factor as specified through bit D2C_BDF

1 (Val_0x1): Invert destination blend factor (1-x)

D2C_BC2

Blend color2 instead of framebuffer pixel

0 (Val_0x0): Use pixel from framebuffer as destination

1 (Val_0x1): Use color2 as destination

D2C_TEXTURECLAMPX

0 (Val_0x0): Mask texture U-coordinate

1 (Val_0x1): Clamp texture U-coordinate

D2C_TEXTURECLAMPY

0 (Val_0x0): Mask texture V-coordinate

1 (Val_0x1): Clamp texture V-coordinate

D2C_TEXTUREFILTERX

0 (Val_0x0): No filtering on texture U-axis

1 (Val_0x1): Linear filtering on texture U-axis

D2C_TEXTUREFILTERY

0 (Val_0x0): No filtering on texture V-axis

1 (Val_0x1): Linear filtering on texture V-axis

D2C_READFORMAT

Pixel format of the texture buffer. This includes configuring the D2C_READFORMAT3 and D2C_READFORMAT4 bits. 0x0: ALPHA8 (1 bpp) 0x1: RGB565 (2 bpp) 0x2: ARGB8888 and RGB888 (4 bpp) 0x3: ARGB4444 and RGB444 (2 bpp) 0x4: ARGB1555 and RGB555 (2 bpp) 0x5: AI44: 4-bit alpha, 4-bit indexed color (1 bpp) 0x6: RGBA8888 (4 bpp) 0x7: RGBA4444 (2 bpp) 0x8: RGBA5551 (2 bpp) 0x9: I8, 8-bit indexed color (1 bpp) 0xA: I4, 4-bit indexed color (2 ppb) 0xB: I2, 2-bit indexed color (4 ppb) 0xC: I1, 1-bit indexed color (8 ppb)

D2C_WRITEFORMAT

Pixel format of the framebuffer. This includes configuring the D2C_WRITEFORMAT3 bit. 0x0: ALPHA8 (1 bpp) 0x1: RGB565 (2 bpp) 0x2: ARGB8888 (4 bpp) 0x3: ARGB4444 (2 bpp) 0x6: RGBA8888 (4 bpp) 0x7: RGBA4444 (2 bpp)

D2C_WRITEALPHA

If bit D2C_USE_ ACB == 0: Set the ‘alpha source’ for the framebuffer. 0x0: Use alpha from color2 0x1: Use source alpha (pixel coverage) 0x2: Use 0.0 as alpha 0x3: Use alpha from framebuffer If bit D2C_USE_ ACB == 1: 0x0: BC2A is 1. Use destination alpha from color2 0x1, 0x2, or 0x3 = BC2A is 0. Use destination alpha

D2C_RLE_ENABLE

Enables the RLE unit.

D2C_CLUT_ENABLE

Enables the CLUT. If CLUT is not enabled for an indexed format, the index will be directly put on the internal R, G, B channels.

D2C_COLKEY_ENABLE

Enable the color keying unit.

D2C_CLUTFORMAT

0 (Val_0x0): ARGB8888 (default)

1 (Val_0x1): RGB565

D2C_BSIA

If bit D2C_USE_ ACB == 1:

0 (Val_0x0): Use blend factor as specified through bit D2C_BSFA

1 (Val_0x1): Invert source blend factor (1-x)

D2C_BDIA

If bit D2C_USE_ ACB == 1:

0 (Val_0x0): Use blend factor as specified through bit D2C_BDFA

1 (Val_0x1): Invert destination blend factor (1-x)

D2C_RLE_PIXEL_WIDTH

Width of a texel for the RLE unit:

0 (Val_0x0): 1 byte per texel

1 (Val_0x1): 2 bytes per texel

2 (Val_0x2): 3 bytes per texel

3 (Val_0x3): 4 bytes per texel

Links

() ()